ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » Mainframe, CICS, TXSeries » SVRCONN and user rights under z/OS

Post new topic  Reply to topic
 SVRCONN and user rights under z/OS « View previous topic :: View next topic » 
Author Message
fswarbrick
PostPosted: Mon Feb 12, 2024 9:47 am    Post subject: SVRCONN and user rights under z/OS Reply with quote

Apprentice

Joined: 07 Jul 2014
Posts: 42

So we're having trouble locking down some users in our production z/OS MQ environment. The users in question only have READ access to most of the queues. Yet they are still able to write to the queues. And the access assigned is to the channel initiator user, rather than the actual user. The CHIN user has UPDATE to the queues, and this is what is allowing it.

We changed the RESLEVEL profile from READ to NONE, but the behavior seems unchanged. Neither the CHIN user nor the channel user are connected to the RESLEVEL group.

Are we missing something?
Back to top
View user's profile Send private message
fswarbrick
PostPosted: Mon Feb 12, 2024 9:50 am    Post subject: Reply with quote

Apprentice

Joined: 07 Jul 2014
Posts: 42

Hmm, that's not actually true. A group that the channel user is in is connected to RESLEVEL. The channel initiator, however, is not. Which, if any, of these users (groups) should be connected to RESLEVEL?
Back to top
View user's profile Send private message
bruce2359
PostPosted: Mon Feb 12, 2024 2:19 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9400
Location: US: west coast, almost. Otherwise, enroute.

Security on z/OS is different from and far more complicated than on UNIX/Windows.
https://www.ibm.com/docs/en/ibm-mq/9.3?topic=zos-profiles-used-control-access-mq-resources
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
zpat
PostPosted: Tue Feb 13, 2024 5:48 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5849
Location: UK

Browse/inquire needs RACF READ.

Get/put needs RACF UPDATE.

MQOO_BROWSE
MQOO_INQUIRE
READ

MQOO_INPUT_*
MQOO_OUTPUT
UPDATE

MQOO_*_CONTEXT UPDATE
MQOO_SET
ALTER

https://www.mqtechconference.com/sessions_v2016/Securing_your_zOS_QMgr.pdf

RESLEVEL is a very strange design and I suspect many installations have security issues due to it (or lack of it).
_________________
Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Tue Feb 13, 2024 8:45 am    Post subject: Re: SVRCONN and user rights under z/OS Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9400
Location: US: west coast, almost. Otherwise, enroute.

fswarbrick wrote:
Are we missing something?

You implied that your configuration works in TEST, but not in prod. What is different/new/changed?

What do your RACF-knowledgeable folks suggest?
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
fswarbrick
PostPosted: Tue Feb 13, 2024 9:07 am    Post subject: Reply with quote

Apprentice

Joined: 07 Jul 2014
Posts: 42

We don't have this security on in test.

My RACF people are without a clue.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Tue Feb 13, 2024 9:24 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9400
Location: US: west coast, almost. Otherwise, enroute.

You've provided near zero useful information to help you.

So, no TEST. Do you have a QA (pre-PROD) environment? Does whatever you are doing work in QA? Or, do you have no security in QA?

Again I ask: what is/are different about the user(s) and queue(s)? New users? New queues?

Why are you target-locked on RESLEVEL?
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
fswarbrick
PostPosted: Tue Feb 13, 2024 11:22 am    Post subject: Reply with quote

Apprentice

Joined: 07 Jul 2014
Posts: 42

No QA system. Just dev/test and prod.

This is likely not a new issue. Just one that no one noticed before.

I'm not "target-locked" on RESLEVEL. It's the only thing we've tried so far. We don't know what else to try; thus the query.

Sounds like we need to open a ticket with IBM. Thanks.
Frank
Back to top
View user's profile Send private message
bruce2359
PostPosted: Tue Feb 13, 2024 11:32 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9400
Location: US: west coast, almost. Otherwise, enroute.

Is the issue with only one SVRCONN channel? Or affecting all SVRCONN channels? What CHLAUTH rules for the channel?
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
elkinsc
PostPosted: Tue Feb 13, 2024 12:08 pm    Post subject: Please see this lab on MQ for z/OS Security Reply with quote

Centurion

Joined: 29 Dec 2004
Posts: 138
Location: Indy

https://github.com/ibm-wsc/mq-wildfire-mqv9zos/blob/c111fe1727d23dfd76cf26e4fe06b81d4dddc1d3/L13_Implementing%20zOS%20Queue%20Manager%20Security.pdf

It may help.
Good Luck!
Back to top
View user's profile Send private message
bruce2359
PostPosted: Tue Feb 13, 2024 5:12 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9400
Location: US: west coast, almost. Otherwise, enroute.

Do you have a CHLAUTH record that asserts an identity?
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
hughson
PostPosted: Wed Feb 14, 2024 1:55 am    Post subject: Re: SVRCONN and user rights under z/OS Reply with quote

Padawan

Joined: 09 May 2013
Posts: 1916
Location: Bay of Plenty, New Zealand

fswarbrick wrote:
So we're having trouble locking down some users in our production z/OS MQ environment. The users in question only have READ access to most of the queues. Yet they are still able to write to the queues. And the access assigned is to the channel initiator user, rather than the actual user. The CHIN user has UPDATE to the queues, and this is what is allowing it.

We changed the RESLEVEL profile from READ to NONE, but the behavior seems unchanged. Neither the CHIN user nor the channel user are connected to the RESLEVEL group.

Are we missing something?

Step-by-step is always the best way to approach a security problem.

Are your client applications running for long enough to "catch" them with a running SVRCONN first of all?

If yes, use the DISPLAY CHSTATUS command to discover what the MCAUSER they are running under is.

Is this user ID the one that has READ access to the queues? If not, we should solve the problem of setting the correct MCAUSER at runtime for these applications.

If this user ID is the expected READ access user ID, then likely you have RESLEVEL set to check a single user ID (READ access for the CHIN ID) and the user ID that will get checked for queue access is the CHINIT user ID. I suspect your channel has PUTAUT(DEF). Would suggest if you want access checked against the MCAUSER, you set PUTAUT to ONLYMCA.

N.B. Read RESLEVEL profile and channels for a summary I wrote a while back.

Let me know the answer to the above question about the MCAUSER and we'll go from there.

Cheers,
Morag
_________________
Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software
Back to top
View user's profile Send private message Visit poster's website
bruce2359
PostPosted: Wed Feb 14, 2024 8:03 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9400
Location: US: west coast, almost. Otherwise, enroute.

fswarbrick wrote:
We don't have this security on in test.

My RACF people are without a clue.

It appears that you have little or no security in prod, as well. Time to involve your internal and external auditors, and update your resume.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » Mainframe, CICS, TXSeries » SVRCONN and user rights under z/OS
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.